<?php

class Ext_Application_Resource_Modulenamespace extends Zend_Application_Resource_ResourceAbstract
{
    public function init()
    {
        $options = $this->getOptions();

        $mns = array();
        if ( isset( $options['modules'] ) ) {
            foreach( $options['modules']  as $module => $path ) {
            $mns[ $module ] = new Zend_Application_Module_Autoloader(array(
                'namespace' => $module,
                'basePath'  => $path,
            ));
            }
        }
        return $mns;
    }
}

